
/**
 * Date:2019年6月4日上午11:33:51
 * Copyright (c) 2019, www.bwbroad.com All Rights Reserved.
 *
*/

package com.xue.im.client.ui;

import java.awt.Image;

import javax.swing.ImageIcon;

/**
 * Description: TODO <br/>
 * Date: 2019年6月4日 上午11:33:51 <br/>
 * 
 * @author xuejianxin
 */
public class ImageScale {
	public static ImageIcon getImage(ImageIcon icon, int width, int height) {
		Image image = icon.getImage().getScaledInstance(width, height, Image.SCALE_REPLICATE);
		icon.setImage(image);
		return icon;
	}
}
